package com.hariro.adapter;

import java.util.List;
import java.util.Map;

import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public abstract class SortNavAdpater extends BaseAdapter {
	private static final String TAG = "SortNavAdpater";
	private List<Map<String, Object>> list = null;
	
	public SortNavAdpater(List<Map<String, Object>> list){
		this.list = list;
	}
	@Override
	public int getCount() {
		return list.size();
	}

	@Override
	public Object getItem(int position) {
		return list.get(position);
	}

	@Override
	public long getItemId(int position) {
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		return initialiseView(position,convertView,parent,list);
	}
	public abstract View initialiseView(int position, View convertView, ViewGroup parent, List<Map<String, Object>> dataList);
}
